package com.tdkj.model.bbs;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * EjfGroup entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ejf_group", catalog = "west")
public class EjfGroup implements java.io.Serializable {

	// Fields

	private String groupId;
	private String groupName;
	private String groupType;
	private Integer minCredits;
	private Integer stars;
	private String rights;
	private Timestamp createTime;
	private Timestamp updateTime;

	// Constructors

	/** default constructor */
	public EjfGroup() {
	}

	/** minimal constructor */
	public EjfGroup(String groupId, String groupName, String rights, Timestamp updateTime) {
		this.groupId = groupId;
		this.groupName = groupName;
		this.rights = rights;
		this.updateTime = updateTime;
	}

	/** full constructor */
	public EjfGroup(String groupId, String groupName, String groupType, Integer minCredits, Integer stars, String rights, Timestamp createTime, Timestamp updateTime) {
		this.groupId = groupId;
		this.groupName = groupName;
		this.groupType = groupType;
		this.minCredits = minCredits;
		this.stars = stars;
		this.rights = rights;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@Column(name = "groupID", unique = true, nullable = false, length = 1)
	public String getGroupId() {
		return this.groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	@Column(name = "groupName", nullable = false, length = 15)
	public String getGroupName() {
		return this.groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	@Column(name = "groupType", length = 1)
	public String getGroupType() {
		return this.groupType;
	}

	public void setGroupType(String groupType) {
		this.groupType = groupType;
	}

	@Column(name = "minCredits")
	public Integer getMinCredits() {
		return this.minCredits;
	}

	public void setMinCredits(Integer minCredits) {
		this.minCredits = minCredits;
	}

	@Column(name = "stars")
	public Integer getStars() {
		return this.stars;
	}

	public void setStars(Integer stars) {
		this.stars = stars;
	}

	@Column(name = "rights", nullable = false, length = 50)
	public String getRights() {
		return this.rights;
	}

	public void setRights(String rights) {
		this.rights = rights;
	}

	@Column(name = "createTime", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "updateTime", nullable = false, length = 19)
	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

}